pub fn new_birthday_probability(n: u32) -> f64 {
    let days_in_year = 365;
    let mut probability_no_shared_birthday = 1.0;

    for i in 1..n {
        probability_no_shared_birthday *= (days_in_year - i) as f64 / days_in_year as f64;
    }

    1.0 - probability_no_shared_birthday
}
